package cn.yunhe.beans;

import org.springframework.stereotype.Component;

/**
 * @author Juni
 * @date 2021/1/18
 */
@Component
public class User {

    private int age;

    private String name;

    public User(){}

    public User(int age,String name){
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
